package com.hy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hy.entity.dto.UserSearchDTO;
import com.hy.entity.pojo.HyUser;
import com.hy.entity.vo.HyUserVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public interface HyUserMapper extends BaseMapper<HyUser> {
/*    List<SysUser> queryUserByClassId(@Param("page") Page page, @Param("dto") UserSearchDto dto);*/

    HyUserVO  findHyUserByUsername(@Param("id") Integer id);


    List<HyUserVO> getUserDetailBySearchDto(@Param("page")Page page, @Param("dto")UserSearchDTO dto);

    Integer findUserIDByUnitIdAndUserName(@Param("unitId") Integer unitId, @Param("userName") String managerName);

    HyUserVO findHyUserByPhone(String phone);

    List<String> getPhoneListByIds(@Param("list") List<Integer> ids);

    List<HyUserVO> findHyPropertyListByMap(Map<String, Object> beanToMap);

    List<HyUserVO> selectOutUsers(Integer unitId);

    //登录功能的


    //根据员工姓名查询员工信息

}
